package com.xbongbong.saas.domain.dao;

import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.saas.domain.entity.ext.CreditCardBillEntityExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author xingxing.xiao
 */
@Mapper
@Repository
public interface CreditCardBillDao {

    Integer insert(CreditCardBillEntityExt entity);

    void insertBatch(List<CreditCardBillEntityExt> list);

    CreditCardBillEntityExt getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(CreditCardBillEntityExt entity);

    List<CreditCardBillEntityExt> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list") List<UpdateDataEntity> list, @Param("corpid") String corpid);
}